package com.ysqcould.message.domain;

import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 短信模板对象 t_sms
 * 
 * @author jcd
 * @date 2022-09-21
 */
public class Sms extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 短信模板id */
    private Long id;

    /** 模板ak值 */
    @Excel(name = "模板ak值")
    private String ak;

    /** 模板sk值 */
    @Excel(name = "模板sk值")
    private String sk;

    /** 模板发送url */
    @Excel(name = "模板发送url")
    private String url;

    /** 使用状态（0 正常 1 冻结 2删除） */
    @Excel(name = "使用状态", readConverterExp = "0=,正=常,1=,冻=结,2=删除")
    private Long status;

    /** 模板名称 */
    @Excel(name = "模板名称")
    private String signName;

    /** 发送方法 */
    @Excel(name = "发送方法")
    private String action;

    /** 短信模板名称 */
    @Excel(name = "短信模板名称")
    private String templateName;

    /** 短信模板code */
    @Excel(name = "短信模板code")
    private String templateCode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAk(String ak) 
    {
        this.ak = ak;
    }

    public String getAk() 
    {
        return ak;
    }
    public void setSk(String sk) 
    {
        this.sk = sk;
    }

    public String getSk() 
    {
        return sk;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setSignName(String signName) 
    {
        this.signName = signName;
    }

    public String getSignName() 
    {
        return signName;
    }
    public void setAction(String action) 
    {
        this.action = action;
    }

    public String getAction() 
    {
        return action;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setTemplateCode(String templateCode) 
    {
        this.templateCode = templateCode;
    }

    public String getTemplateCode() 
    {
        return templateCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ak", getAk())
            .append("sk", getSk())
            .append("url", getUrl())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("signName", getSignName())
            .append("action", getAction())
            .append("templateName", getTemplateName())
            .append("templateCode", getTemplateCode())
            .toString();
    }
}
